package com.wlyuan.open.scanner.domain.transport;

import com.alibaba.fastjson.JSONObject;
import com.wlyuan.open.scanner.utils.enums.order.OrderCreateTypeEnum;
import com.wlyuan.open.scanner.utils.enums.order.TopOrderTypeEnum;
import com.wlyuan.open.scanner.utils.enums.transport.WaybillTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author lijing
 * @description
 */
@Data
public class TransportInfo implements Serializable {

    private static final long serialVersionUID = -2541905424491103513L;
    @ApiModelProperty("上游运单id")
    private Long upTransportId;
    @ApiModelProperty("客户ID")
    private Long customerId;
    @ApiModelProperty("客户名称")
    private String customerName;
    @ApiModelProperty("客户类型")
    private Integer customerType;
    @ApiModelProperty("收货方id")
    private Long consigneeId;
    @ApiModelProperty("收货方名称")
    private String consigneeName;
    @ApiModelProperty("所属订单ID")
    private Long orderId;
    @ApiModelProperty("订单租户")
    private Long orderTenantId;
    @ApiModelProperty("订单客户id")
    private Long orderCustomerId;
    @ApiModelProperty("订单客户类型")
    private Integer orderCustomerType;
    @ApiModelProperty("订单客户名称")
    private String orderCustomerName;
    @ApiModelProperty("订单创建人")
    private Long orderCreateBy;
    @ApiModelProperty("所属订单编号")
    private String orderNo;
    @ApiModelProperty("合同号")
    private String contractNo;
    @ApiModelProperty("创建类型")
    private OrderCreateTypeEnum createType;
    @ApiModelProperty("备注")
    private String desc;
    @ApiModelProperty("总重量(未含补差-公斤)")
    private BigDecimal totalWeight;
    @ApiModelProperty("总体积(未含补差-方)")
    private BigDecimal totalVolume;
    @ApiModelProperty("总价值(未含补差-元)")
    private BigDecimal totalValue;
    @ApiModelProperty("总运费-元")
    private BigDecimal totalCost;
    @ApiModelProperty("总数量")
    private Integer totalAmount;
    @ApiModelProperty("重量补差-公斤")
    private BigDecimal weightAddition;
    @ApiModelProperty("体积补差-方")
    private BigDecimal volumeAddition;
    @ApiModelProperty("价值补差-元")
    private BigDecimal valueAddition;
    @ApiModelProperty("调度人")
    private Long dispatchBy;
    @ApiModelProperty("调度时间")
    private LocalDateTime dispatchAt;
    @ApiModelProperty("创建人")
    private Long createBy;
    @ApiModelProperty("更新时间")
    private LocalDateTime updateAt;
    @ApiModelProperty("更新人")
    private Long updateBy;
    @ApiModelProperty("类型")
    private WaybillTypeEnum waybillType;
    @ApiModelProperty("脱普-是否从单")
    private TopOrderTypeEnum followWaybill;
    @ApiModelProperty("扩展信息")
    private JSONObject echo;
}
